﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WS.EKA.UI.Business
{
    internal class ReceiverBase : IReceive
    {
        public void Receive<Model>(Model m)
        {
            var fac = ReportFactory.GetReportFactory(Key);
            fac.Send(new ReportParameter<Model>() { Data = m });
        }

        public virtual WebSocketClientType Key
        {
            get { return WebSocketClientType.None; }
        }
    }
}
